//
//  BHCommonBannerModel.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/27.
//

import UIKit

class BHCommonBannerModel {
    var bannerId: String = ""
    var image_url: String = ""
    var link_url: String = ""
    var title: String = ""
    var business_json: String = ""

    var type: Int = -1
    

    
    func parseDic(_ dic: [String: Any]) {
        self.bannerId = BHJsonTool.decodeStringFromDic(dic: dic, key: "id")
        self.image_url = BHJsonTool.decodeStringFromDic(dic: dic, key: "image_url")
        self.link_url = BHJsonTool.decodeStringFromDic(dic: dic, key: "link_url")
        self.title = BHJsonTool.decodeStringFromDic(dic: dic, key: "title")
        self.business_json = BHJsonTool.decodeStringFromDic(dic: dic, key: "business_json")

        self.type = BHJsonTool.decodeIntFromDic(dic: dic, key: "type")

    }
    
}
